package com.recSys.model;

import java.util.Date;
import java.util.Objects;

public class Organization {
    private Integer id;

    private String userName;

    private String password;
    
    private String orgNum;

    private String portrait;

    private String orgCode;

    private String orgName;

    private String regisAddr;

    private Double longitude;

    private Double latitude;

    private String province;

    private String legalPersonName;

    private String legalPersonID;

    private Integer orgType;

    private Integer orgSubType;
    
    private String busiScope;

    private String orgPhotos;

    private String orgVideos;

    private String orgTel;

    private String orgEmail;

    private Double creditRating;
    
    private Integer recommendLevel;
    
    private Integer role;

    private String licenceScanning;

    private String codeScanning;

    private String docScanning;

    private String signScanning;

    private Date addTime;

    private Integer state;

    private String orgIntro;
    
    @Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((addTime == null) ? 0 : addTime.hashCode());
		result = prime * result
				+ ((busiScope == null) ? 0 : busiScope.hashCode());
		result = prime * result
				+ ((codeScanning == null) ? 0 : codeScanning.hashCode());
		result = prime * result
				+ ((creditRating == null) ? 0 : creditRating.hashCode());
		result = prime * result
				+ ((docScanning == null) ? 0 : docScanning.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result
				+ ((latitude == null) ? 0 : latitude.hashCode());
		result = prime * result
				+ ((legalPersonID == null) ? 0 : legalPersonID.hashCode());
		result = prime * result
				+ ((legalPersonName == null) ? 0 : legalPersonName.hashCode());
		result = prime * result
				+ ((licenceScanning == null) ? 0 : licenceScanning.hashCode());
		result = prime * result
				+ ((longitude == null) ? 0 : longitude.hashCode());
		result = prime * result + ((orgCode == null) ? 0 : orgCode.hashCode());
		result = prime * result
				+ ((orgEmail == null) ? 0 : orgEmail.hashCode());
		result = prime * result
				+ ((orgIntro == null) ? 0 : orgIntro.hashCode());
		result = prime * result + ((orgName == null) ? 0 : orgName.hashCode());
		result = prime * result + ((orgNum == null) ? 0 : orgNum.hashCode());
		result = prime * result
				+ ((orgPhotos == null) ? 0 : orgPhotos.hashCode());
		result = prime * result
				+ ((orgSubType == null) ? 0 : orgSubType.hashCode());
		result = prime * result + ((orgTel == null) ? 0 : orgTel.hashCode());
		result = prime * result + ((orgType == null) ? 0 : orgType.hashCode());
		result = prime * result
				+ ((orgVideos == null) ? 0 : orgVideos.hashCode());
		result = prime * result
				+ ((password == null) ? 0 : password.hashCode());
		result = prime * result
				+ ((portrait == null) ? 0 : portrait.hashCode());
		result = prime * result
				+ ((province == null) ? 0 : province.hashCode());
		result = prime * result
				+ ((recommendLevel == null) ? 0 : recommendLevel.hashCode());
		result = prime * result
				+ ((regisAddr == null) ? 0 : regisAddr.hashCode());
		result = prime * result + ((role == null) ? 0 : role.hashCode());
		result = prime * result
				+ ((signScanning == null) ? 0 : signScanning.hashCode());
		result = prime * result + ((state == null) ? 0 : state.hashCode());
		result = prime * result
				+ ((userName == null) ? 0 : userName.hashCode());
		return result;
	} 
    
    

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Organization other = (Organization) obj;
		if (addTime == null) {
			if (other.addTime != null)
				return false;
		} else if (!addTime.equals(other.addTime))
			return false;
		if (busiScope == null) {
			if (other.busiScope != null)
				return false;
		} else if (!busiScope.equals(other.busiScope))
			return false;
		if (codeScanning == null) {
			if (other.codeScanning != null)
				return false;
		} else if (!codeScanning.equals(other.codeScanning))
			return false;
		if (creditRating == null) {
			if (other.creditRating != null)
				return false;
		} else if (!creditRating.equals(other.creditRating))
			return false;
		if (docScanning == null) {
			if (other.docScanning != null)
				return false;
		} else if (!docScanning.equals(other.docScanning))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (latitude == null) {
			if (other.latitude != null)
				return false;
		} else if (!latitude.equals(other.latitude))
			return false;
		if (legalPersonID == null) {
			if (other.legalPersonID != null)
				return false;
		} else if (!legalPersonID.equals(other.legalPersonID))
			return false;
		if (legalPersonName == null) {
			if (other.legalPersonName != null)
				return false;
		} else if (!legalPersonName.equals(other.legalPersonName))
			return false;
		if (licenceScanning == null) {
			if (other.licenceScanning != null)
				return false;
		} else if (!licenceScanning.equals(other.licenceScanning))
			return false;
		if (longitude == null) {
			if (other.longitude != null)
				return false;
		} else if (!longitude.equals(other.longitude))
			return false;
		if (orgCode == null) {
			if (other.orgCode != null)
				return false;
		} else if (!orgCode.equals(other.orgCode))
			return false;
		if (orgEmail == null) {
			if (other.orgEmail != null)
				return false;
		} else if (!orgEmail.equals(other.orgEmail))
			return false;
		if (orgIntro == null) {
			if (other.orgIntro != null)
				return false;
		} else if (!orgIntro.equals(other.orgIntro))
			return false;
		if (orgName == null) {
			if (other.orgName != null)
				return false;
		} else if (!orgName.equals(other.orgName))
			return false;
		if (orgNum == null) {
			if (other.orgNum != null)
				return false;
		} else if (!orgNum.equals(other.orgNum))
			return false;
		if (orgPhotos == null) {
			if (other.orgPhotos != null)
				return false;
		} else if (!orgPhotos.equals(other.orgPhotos))
			return false;
		if (orgSubType == null) {
			if (other.orgSubType != null)
				return false;
		} else if (!orgSubType.equals(other.orgSubType))
			return false;
		if (orgTel == null) {
			if (other.orgTel != null)
				return false;
		} else if (!orgTel.equals(other.orgTel))
			return false;
		if (orgType == null) {
			if (other.orgType != null)
				return false;
		} else if (!orgType.equals(other.orgType))
			return false;
		if (orgVideos == null) {
			if (other.orgVideos != null)
				return false;
		} else if (!orgVideos.equals(other.orgVideos))
			return false;
		if (password == null) {
			if (other.password != null)
				return false;
		} else if (!password.equals(other.password))
			return false;
		if (portrait == null) {
			if (other.portrait != null)
				return false;
		} else if (!portrait.equals(other.portrait))
			return false;
		if (province == null) {
			if (other.province != null)
				return false;
		} else if (!province.equals(other.province))
			return false;
		if (recommendLevel == null) {
			if (other.recommendLevel != null)
				return false;
		} else if (!recommendLevel.equals(other.recommendLevel))
			return false;
		if (regisAddr == null) {
			if (other.regisAddr != null)
				return false;
		} else if (!regisAddr.equals(other.regisAddr))
			return false;
		if (role == null) {
			if (other.role != null)
				return false;
		} else if (!role.equals(other.role))
			return false;
		if (signScanning == null) {
			if (other.signScanning != null)
				return false;
		} else if (!signScanning.equals(other.signScanning))
			return false;
		if (state == null) {
			if (other.state != null)
				return false;
		} else if (!state.equals(other.state))
			return false;
		if (userName == null) {
			if (other.userName != null)
				return false;
		} else if (!userName.equals(other.userName))
			return false;
		return true;
	}



	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getOrgNum() {
		return orgNum;
	}

	public void setOrgNum(String orgNum) {
		this.orgNum = orgNum;
	}

	public String getPortrait() {
        return portrait;
    }

    public void setPortrait(String portrait) {
        this.portrait = portrait == null ? null : portrait.trim();
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode == null ? null : orgCode.trim();
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName == null ? null : orgName.trim();
    }

    public String getRegisAddr() {
        return regisAddr;
    }

    public void setRegisAddr(String regisAddr) {
        this.regisAddr = regisAddr == null ? null : regisAddr.trim();
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province == null ? null : province.trim();
    }

    public String getLegalPersonName() {
        return legalPersonName;
    }

    public void setLegalPersonName(String legalPersonName) {
        this.legalPersonName = legalPersonName == null ? null : legalPersonName.trim();
    }

    public String getLegalPersonID() {
        return legalPersonID;
    }

    public void setLegalPersonID(String legalPersonID) {
        this.legalPersonID = legalPersonID == null ? null : legalPersonID.trim();
    }

    public Integer getOrgType() {
        return orgType;
    }

    public void setOrgType(Integer orgType) {
        this.orgType = orgType;
    }

    public Integer getOrgSubType() {
        return orgSubType;
    }

    public void setOrgSubType(Integer orgSubType) {
        this.orgSubType = orgSubType;
    }

    public String getBusiScope() {
        return busiScope;
    }

    public void setBusiScope(String busiScope) {
        this.busiScope = busiScope == null ? null : busiScope.trim();
    }

    public String getOrgPhotos() {
        return orgPhotos;
    }

    public void setOrgPhotos(String orgPhotos) {
        this.orgPhotos = orgPhotos == null ? null : orgPhotos.trim();
    }

    public String getOrgVideos() {
        return orgVideos;
    }

    public void setOrgVideos(String orgVideos) {
        this.orgVideos = orgVideos == null ? null : orgVideos.trim();
    }

    public String getOrgTel() {
        return orgTel;
    }

    public void setOrgTel(String orgTel) {
        this.orgTel = orgTel == null ? null : orgTel.trim();
    }

    public String getOrgEmail() {
        return orgEmail;
    }

    public void setOrgEmail(String orgEmail) {
        this.orgEmail = orgEmail == null ? null : orgEmail.trim();
    }

    public Double getCreditRating() {
        return creditRating;
    }

    public void setCreditRating(Double creditRating) {
        this.creditRating = creditRating;
    }

    
    public Integer getRecommendLevel() {
		return recommendLevel;
	}

	public void setRecommendLevel(Integer recommendLevel) {
		this.recommendLevel = recommendLevel;
	}

	public Integer getRole() {
		return role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	public String getLicenceScanning() {
        return licenceScanning;
    }

    public void setLicenceScanning(String licenceScanning) {
        this.licenceScanning = licenceScanning == null ? null : licenceScanning.trim();
    }

    public String getCodeScanning() {
        return codeScanning;
    }

    public void setCodeScanning(String codeScanning) {
        this.codeScanning = codeScanning == null ? null : codeScanning.trim();
    }

    public String getDocScanning() {
        return docScanning;
    }

    public void setDocScanning(String docScanning) {
        this.docScanning = docScanning == null ? null : docScanning.trim();
    }

    public String getSignScanning() {
        return signScanning;
    }

    public void setSignScanning(String signScanning) {
        this.signScanning = signScanning == null ? null : signScanning.trim();
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getOrgIntro() {
        return orgIntro;
    }

    public void setOrgIntro(String orgIntro) {
        this.orgIntro = orgIntro == null ? null : orgIntro.trim();
    }

}